package com.xinfan.mhl.service;

import com.xinfan.mhl.dao.MultiBeanDAO;
import com.xinfan.mhl.domain.MultiBean;

import java.util.List;

/**
 * @Author zhangxin
 * @Date 2022/6/24 16:39
 * @Version 1.0
 */
public class MultiBeanService {
    private MultiBeanDAO multiBeanDAO = new MultiBeanDAO();

    /**
     * @Description 返回带菜命的账单信息
     * @Param []
     * @return java.util.List<com.xinfan.mhl.domain.MultiBean>
     * @Author zhangxin
     * @Date 2022/6/24 16:40
     * @Version 1.0
     **/
    public List<MultiBean> getMultiBeans() {
        return multiBeanDAO.selectMany("select bill.*,menu.name from bill,menu where bill.menuId = menu.id",MultiBean.class);
    }
}
